package com.kanas.webak.rbac.repository;

import java.util.List;

import org.springframework.data.repository.CrudRepository;

import com.kanas.webak.rbac.domain.AppPermission;
import com.kanas.webak.rbac.domain.AppRole;

public interface PermissionRepository extends CrudRepository<AppPermission, String>{
	List<AppPermission> findByRole(AppRole role);
	AppPermission findByRoleAndPermissionId(AppRole role, String permissionId);
}